package com.hjc.springbootmovies.service.Impl;

import com.hjc.springbootmovies.entity.ModelBroad;
import com.hjc.springbootmovies.mapper.MappingBorad;
import com.hjc.springbootmovies.service.BoradService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: HJC
 * Date: 2019/12/6
 * Time: 9:15
 * To change this template use File | Settings | File Templates.
 */
@Service
public class BoradServiceImpl implements BoradService {
    @Autowired
    private MappingBorad mappingBorad;
    @Override
    public List<ModelBroad> queryBorad() {
        return mappingBorad.queryBorad();
    }

    @Override
    public int addBroad(ModelBroad modelBroad) {
        return mappingBorad.addBroad(modelBroad);
    }

    @Override
    public int deleteById(int xid) {
        return mappingBorad.deleteById(xid);
    }

    @Override
    public int updateBroad(ModelBroad modelBroad) {
        return mappingBorad.updateBroad(modelBroad);
    }

    @Override
    public ModelBroad queryById(int xid) {
        return mappingBorad.queryById(xid);
    }
}
